package com.lemeng.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.lemeng.service.MenuService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("menu")
public class MenuController {


    @Reference
    MenuService menuService;


    @GetMapping("findAllMenu")
    public Map<String,Object> findAll(){
        return menuService.findAllMenus();
    }




}
